<?php /* Smarty version 2.6.19, created on 2012-10-03 12:47:52
         compiled from D:/xampp/htdocs/nghiepquang/templates/AdvCover/AdvCover.tpl */ ?>
<?php if ($this->_tpl_vars['adv_on']): ?>
    <div class="c"></div>
    <div style="z-index:1000;display:block;position:absolute;" id="ADV_OverTop" >
        <table border="0" width="800" cellpadding="0" bgcolor="#FFFFFF" cellspacing="1">
         <tr>
          <td align="right" bgcolor="#FF0000" style="padding:5px;">
           <a href="<?php echo $this->_tpl_vars['url_detail']; ?>
" class="adv_cover_close_div"></a>
           <span class="adv_cover_close_div" onclick="ADV_OverTopArea.HideAllProtect();">[ X ] Đóng cửa sổ </span></td>
          </tr>
         <tr>
          <td align="center" bgcolor="#FFFFFF">
          <iframe src="promotion/<?php echo $this->_tpl_vars['type_promotion']; ?>
.html" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" 
          width="100%" height="538"></iframe>
          </tr>
          <input type="hidden" value="" id="cover_url" />
         <tr>
          <td align="center" bgcolor="#FF0000" style="padding:5px;">
           <a href="<?php echo $this->_tpl_vars['url_detail']; ?>
" id="url_root" class="adv_cover_close_div">Click vào đây để xem chi tiết...</a>
           
           <script>
                document.getElementById('cover_url').value=document.getElementById('url_root').href;
           </script>       
          </td>
          </tr>
      </table>
    </div>
    
    <script language="javascript" type="text/javascript" src="javascript/ads/adv_cover_top.js"></script>
    <script>
    ADV_OverTopArea.writeComponent();
    </script>
<?php endif; ?>

<?php if ($this->_tpl_vars['admin_url']): ?>
	<div style="width:1000px;margin:20px auto">
		<?php echo $this->_tpl_vars['beginform']; ?>

        <div style="cursor:pointer;" onclick="jQuery('#adv_cover_config').toggle()"><span style="color:#F00"><b>Cấu hình AdvCorver:</b></span> [ <a href="<?php echo $this->_tpl_vars['admin_url']; ?>
">Quản lý các Chương trình KM</a> ]</div>
        <div id="adv_cover_config" class="hide">
        <?php echo $this->_tpl_vars['msg']; ?>

        Tình trạng: <select name="status"><?php echo $this->_tpl_vars['status_option']; ?>
</select>
        
        Url: <input type="text" name="url" value="<?php echo $this->_tpl_vars['url']; ?>
" /> 
        	Loại hiển thị: <select name="type">
            <?php echo $this->_tpl_vars['type_option']; ?>

        	</select>
        Upload: <input type="file" name="banner"/> (<strong>Ảnh</strong> 800x538 ( .gif , .jpg ); <strong>Flash</strong>   800x538 ( .swf ))
        <input type="submit"  name="banner" value="Cập nhật" />
        </div>
        <?php echo $this->_tpl_vars['endform']; ?>

    </div>
<?php endif; ?>